package org.example.springboot.repository;

import org.example.springboot.entity.ExpertAppointment;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface ExpertAppointmentRepository extends JpaRepository<ExpertAppointment, Long> {
    List<ExpertAppointment> findByExpertId(Long expertId);
    List<ExpertAppointment> findByUserId(Long userId);
    List<ExpertAppointment> findByUserIdAndStatus(Long userId, String status);
    List<ExpertAppointment> findByExpertIdAndStatus(Long expertId, String status);
} 